#parse("admin/inc/contentleft.html")
<div id="center-column">
	<div class="top-bar">
		<a href="new" class="button">增加 广告 </a>
		<h1>
			Contents
		</h1>
		<div class="breadcrumbs">
			<a href="#">Homepage</a> /
			<a href="#">Contents</a>
		</div>
	</div>
	<br />
	<div class="select-bar">

	</div>
	<div class="table">
		<img src="../../img/bg-th-left.gif" width="8" height="7" alt=""
			class="left" />
		<img src="../../img/bg-th-right.gif" width="7" height="7" alt=""
			class="right" />
		<table class="listing form" cellpadding="0" cellspacing="0">
			<form name="editnews" id="editnews" method="post" action="../save">
				<input type="hidden" name="contentID" value="${entity.contentID}" />
				<tr>
					<th class="full" colspan="2">
						增加项
					</th>
				</tr>

				<tr>
					<td class="first" width="172">
						<strong>广告标题</strong>
					</td>
					<td class="last">
						<INPUT type="text" class=text name=contentTitle
							value="${entity.contentTitle}">
					</td>
				</tr>
				<tr>
					<td class="first" width="172">
						<strong>广告链接</strong>
					</td>
					<td class="last">
						<input type="text" class="text" name=contentLink
							value="${entity.contentLink}" />

					</td>
				</tr>
				<tr>
					<td class="first"">
						<strong>资讯图标</strong>
					</td>
					<td class="last">
						<input type="text" class="text" name=contentImage
							value="${entity.contentImage}" />
					</td>
				</tr>

				<tr>
					<td class="first"">
						<strong>所属频道</strong>
					</td>
					<td class="last">
						<select style="width: 65%" name="channelID"
							value="${entity.channelID}">
							
						 #if( $channellist.size() > 0) #foreach ( $data in ${channellist})
							#if($!{entity.channelID}==$!{data.channelId})
							#set ($ifselect1 ="selected") 
							<option value='${data.channelId}' $!{ifselect1}>
							${data.channelTitle}
							</option>
							#else 
							<option value='${data.channelId}' >
							${data.channelTitle}
							</option>
							#end
							
							#end #end
						</select>
					</td>
				</tr>

				<tr>
					<td class="first"">
						<strong>是否显示</strong>
					</td>
					<td class="last">
					 
			#if($!{entity.isDisplay}==0) #set ($ifselect1 ="selected")
						#else #set ($ifselect2 ="selected") #end
						<select style="width: 65%" name="isDisplay"
							value="${entity.isDisplay}">
							<option value='0' $!{ifselect1}>
								否
							</option>
							<option value='1' $!{ifselect2} >
								是
							</option>
						</select>
					</td>
				</tr>



				<tr>
					<td class="first"">
						<strong>广告显示位置</strong>
					</td>
					<td class="last">
					
					
					#if($!{entity.positionID}=="1") 
					#set ($ifselect1 ="selected")
					#elseif($!{entity.positionID}=="2")
					#set ($ifselect2 ="selected") 
					#elseif($!{entity.positionID}=="3")
					#set ($ifselect3 ="selected") 
					#elseif($!{entity.positionID}=="4")
					#set ($ifselect4 ="selected") 
					#end
						 
						
						
						<select style="width: 65%" name="positionID"
							value="${entity.positionID}">
							<option value='1' $!{ifselect1} >
								1
							</option>
							<option value='2' $!{ifselect2} >
								2
							</option>
							<option value='3' $!{ifselect3} >
								3
							</option>
							<option value='4' $!{ifselect4} >
								4
							</option>
						</select>
					</td>
				</tr>



				<tr>
					<td>
						<input type="submit" value="保 存" />
			</form>
			</td>
			</tr>
		</table>
		<p>
			&nbsp;
		</p>
	</div>
</div>
<div id="right-column">
	<strong class="h">INFO</strong>
	<div class="box">
		Detect and eliminate viruses and Trojan horses, even new and unknown
		ones. Detect and eliminate viruses and Trojan horses, even new and
	</div>
</div>
</div>
<div id="footer"></div>
</div>


</body>
</html>
